import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			redirect: '/login'
		},
		{
			path: '/',
			component: () => import('../components/Home.vue'),
			meta: {
				title: 'home'
			},
			children: [{
				path: 'dashboard',
				component: () => import('../pages/dashboard'),
				meta: {
					title: '系统首页'
				}
			}, {
				path: 'wangeditor',
				component: () => import('../pages/wangeditor'),
				meta: {
					title: '富文本编辑器'
				}
			}, ]
		},
		{
			path: '/login',
			component: () => import('../pages/login'),
			meta: {
				title: '登录'
			}
		}
	]
})